﻿<UserControl x:Class="Chapters.Chapter14.RenderTargetBitmapExample"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<UserControl.Resources>
		<Border x:Key="Polaroid"
				Margin="5,2,5,2"
				Padding="2"
				CornerRadius="5"
				x:Shared="False" 
				BorderBrush="Black"
				BorderThickness="2"/>
	</UserControl.Resources>
	<DockPanel>
		<ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Hidden"
					  ScrollViewer.HorizontalScrollBarVisibility="Visible"
					  DockPanel.Dock="Bottom">
			<StackPanel x:Name="_renderTargets"
						Orientation="Horizontal"
						Height="150" />
		</ScrollViewer>
		<Button Content="Capture Bitmap"
				Click="CaptureBitmap"
				DockPanel.Dock="Bottom" />

		<Grid HorizontalAlignment="Center"
			  VerticalAlignment="Center">
			<MediaElement x:Name="_video"
						  Source="/Resources;component/Chapter02/Bear.wmv"
						  LoadedBehavior="Play" />
		</Grid>
	</DockPanel>
</UserControl>
